/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-09-29     FuLei       the first version
 */
#ifndef HARDWARE_AD7190_H_
#define HARDWARE_AD7190_H_

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>

#define AD7190_BPSW_ON     1   // 电桥打开
#define AD7190_BPSW_OFF    0





///-------------------------------------------------------
void AD7190_ID_RD(void);
void AD7190_Reset(void);
void AD7190_ConfigReg_Set(void);
void AD7190_ConfigReg_Read(void);
void AD7190_ConfigReg_Switch(void);
void AD7190_ModeReg_Set(void);
void AD7190_ModeReg_Read(void);

void AD7190_GPOCONReg_Set(rt_uint8_t bpsw);

void AD7190_Init(void);
rt_uint32_t AD7190_DataReg_RD(void);



#endif /* HARDWARE_AD7190_H_ */
